<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>后台管理系统</title>
<link href="./Public/Css/index.css" rel="stylesheet" type="text/css" />
<link href="./Public/Css/jqueryui.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src='./Public/Js/jquery.min.js'></script>
<script type="text/javascript" src='./Public/Js/jquery.validate.js'></script>
<script type="text/javascript" src='./Public/Js/jquery.form.js'></script>
<script type="text/javascript" src='./Public/Js/jquery.cookie.js'></script>
<script type="text/javascript" src='./Public/Js/jquery.ui.js'></script>
<script type="text/javascript" src='./Public/Ui/DatePicker/WdatePicker.js'></script>
<script language="JavaScript">
var ROOT =	 '__ROOT__';
var URL = '__URL__';
var APP	 =	 '__APP__';
var PUBLIC = '__PUBLIC__';

  function subMenu(num){
      for($i=1;$i<=4;$i++){
        if(num!=$i){
        $('#left_dao_'+$i).hide();
        }
      }
      $.cookie('nav',num);
	  
	  if(1==num){
	    window.location.href='{:U('Product/index')}';
	  }
	
	  if(2==num){
		window.location.href='{:U('Customer/index')}';
	  }
	  if(3==num){
		 window.location.href='{:U('Version/index')}';
	  }
	  if(4==num){
		 window.location.href='{:U('System/index')}';
	  }
      $('#left_dao_'+num).show();
  }

  function checkAll(){
	if($("input[name='pcheckbox']").attr("checked")=='checked'){

		$("input[name^='check']").attr("checked",true);
	}else{
		$("input[name^='check']").attr("checked",false);
	}
	
  }

</script>
<style type="text/css">
        body{font-size:12px;}
        /* form中显示文字的label */
        .label{
            width:100px;
            display: -moz-inline-box;
            line-height: 1.8;
            display: inline-block;
            text-align:right;
        }
        /* 出错样式 */
        input.error, textarea.error{
            border: solid 1px #CD0A0A;
        }
        label.error{
            color:#CD0A0A;
            margin-left:5px;
        }
        /* 深红色文字 */
        .textred{
            color:#ff0000;
        }
    </style>
	
</head>

<body>
<div class="top-bar clearfix">
    <h1 class="logo">
        <a href="#">BizHub授权系统</a>
    </h1>
    <div class="topright frt">
    	<div class="topbarline">
		
            <span><a href="#">帮助</a></span>|
            <span><a href="#">控制面板</a></span>|
            <span><a href="#">回收站</a></span>|
            <span><a href="#">桌面</a></span>
          <span>|</span> 
            &nbsp;&nbsp;{$username}&nbsp;&nbsp;<!--[<a href="#">设置</a>]-->
          [<a href="{:U('Login/logout')}">退出</a>]
        </div>
	</div>
    <div class="menu clearfix">
</div>
</div>
<div class="menu clearfix">
   <ul id="nav">
     <li><a class="content-general" mid="43" href="javascript:subMenu(1)"><span>产品</span></a>  
       <ul>
         <li class="head-nav-sub-clear"><span>产品管理</span></li> 
		 <li style="min-width: 82px;"><span><a href="{:U('Product/index')}">产品列表</a></span></li>
         <li style="min-width: 82px;"><span><a href="{:U('Product/showadd')}">添加产品</a></span></li>
         <li style="min-width: 82px;"><span><a href="{:U('Version/index')}">版本列表</a></span></li>
         <li class="last" style="min-width: 82px;"><span><a href="{:U('Version/showadd')}">添加版本</a></span></li> 
       </ul>
     </li>
   </ul>
   
   <ul id="nav">
     <li><a class="content-general" mid="55" href="javascript:subMenu(2)"><span>客户</span></a>
       <ul>
         <li class="head-nav-sub-clear"><span>客户管理</span></li>
		 <li style="min-width: 82px;"><span><a href="{:U('Customer/index')}">客户列表</a></span></li>
         <li class="last" style="min-width: 82px;"><span><a href="{:U('Customer/showadd')}">添加客户</a></span></li>
       </ul>
     </li>
   </ul>
  
   <ul id="nav">
     <li><a class="content-general" mid="121" href="javascript:subMenu(3)"><span>授权</span></a>
       <ul>
         <li class="head-nav-sub-clear"><span>授权管理</span></li>
         <li style="min-width: 154px;"><span><a href="{:U('License/index')}">授权列表</a></span></li>
         <li style="min-width: 154px;"><span><a href="{:U('License/showadd')}">添加授权</a></span></li>
       </ul>
     </li>
   </ul>
 
   <ul id="nav">
     <li><a class="content-general" mid="122" href="javascript:subMenu(4)"><span>系统</span></a>
       <ul>
         <li class="head-nav-sub-clear"><span>系统管理</span></li>        
         <li style="min-width: 58px;"><span><a href="{:U('System/index')}">系统设置</a></span></li>
       </ul>
     </li>
   </ul>
</div>
<table class="admin_body_xu">
	<tr>
		<td class="td_left_men">
<div class="content-all clearfix" style="height:720px;">
    <div class="content-side flt">
        <div class="content-side-inner" id='left_dao_1'>
          <div class="content-side-content" style="height:800px;">
            <div class="content-side-bx top">
              <div class="actuator" id="productsActuator">
                <h3><a href="#">产品管理</a></h3>
              </div>
              <div class="side-bx-bd">
                <ul id="productsMenu">
                  <li><a target="" href="{:U('Product/index')}" mid="310">产品列表</a></li>
				  <li><a target="" href="{:U('Product/showadd')}" mid="311">添加产品</a></li>
				  <li><a target="" href="{:U('Version/showadd')}" mid="312">添加版本</a></li>
				  <li><a target="" href="{:U('Version/index')}" mid="313">版本列表</a></li>
                </ul>
              </div>
            </div>
          </div>
        </div>
		<div class="content-side-inner" id='left_dao_2' >
          <div class="content-side-content" style="height:800px;">
            <div class="content-side-bx top">
              <div class="actuator" id="productsActuator">
                <h3><a href="#">客户管理</a></h3>
              </div>
              <div class="side-bx-bd">
                <ul id="productsMenu">
                  <li><a target="" href="{:U('Customer/index')}" mid="310">客户列表</a></li>
				  <li><a target="" href="{:U('Customer/showadd')}" mid="311">添加客户</a></li>
                </ul>
              </div>
            </div>
          </div>
        </div>
		<div class="content-side-inner" id='left_dao_3' >
          <div class="content-side-content" style="height:800px;">
            <div class="content-side-bx top">
              <div class="actuator" id="productsActuator">
                <h3><a href="#">授权管理</a></h3>
              </div>
              <div class="side-bx-bd">
                <ul id="productsMenu">
                  <li><a target="" href="{:U('License/index')}" mid="310">授权列表</a></li>
				  <li><a target="" href="{:U('License/showadd')}" mid="311">添加授权</a></li>
                </ul>
              </div>
            </div>
          </div>
        </div>
		<div class="content-side-inner" id='left_dao_4' >
          <div class="content-side-content" style="height:800px;">
            <div class="content-side-bx top">
              <div class="actuator" id="productsActuator">
                <h3><a href="#">系统管理</a></h3>
              </div>
              <div class="side-bx-bd">
                <ul id="productsMenu">
                  <li><a target="" href="{:U('System/index')}" mid="310">系统设置</a></li>
                </ul>
              </div>
            </div>
          </div>
        </div>
    </div>
    </td>
    
	<script>

		if($.cookie('nav')!=null){
			var num=$.cookie('nav');
			$('#left_dao_'+num).show();
      
			for($k=1;$k<=4;$k++){
				if(num==$k){
				}else{
					$('#left_dao_'+$k).hide();
				}
			}	
		  }else{
			$('#left_dao_1').show();
			for($i=2;$i<=4;$i++){
			$('#left_dao_'+$i).hide();
			}
		  }
	</script>